﻿using System;
using System.Collections.Generic;
using SolidPrinciples.OpenClosed;

namespace SolidPrinciples.InterfaceSegregation
{
    public interface IPointOfSaleTerminalView
    {
        event EventHandler<NewProductRegisterPressEventArgs> NewProductRegisterPressed;
        void Show(IEnumerable<Product> products);
        void ShowSumToPay(decimal sumToPay);
    }

    public class NewProductRegisterPressEventArgs : EventArgs
    {
        public Product Product { get; private set; }

        public int Amount { get; private set; }
    }
}